<?php

namespace App\Listeners;

use D1M\Payment\Events\PaymentFailed;
use Throwable;

/**
 * 通知 ES 系统订单支付失败
 */
class NotifyOrderPaymentFailed extends NotifyOrderPaymentStatusChanged
{

    /**
     * @param PaymentFailed $event
     * @throws Throwable
     */
    public function handle(PaymentFailed $event)
    {
        $this->doHandle($event->id, 'FAILED', '支付失败');
    }

}